package com.itstyle.seckill.util.statusflow;

import com.alibaba.fastjson.annotation.JSONCreator;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author lifujun
 * @description: 大订单类型
 * @date 2023/9/7 9:04
 */
public enum BigOrderClassificationEnum implements DbEnum<Integer> {
    MALL(1, "标准电商"),
    DISPATCH(2, "标准核销"),
    VIRTUAL(3, "标准虚拟"),
    DISPATCH_PAY(4, "核销支付"),
    JOINT_WRITE_OFF(5, "组合标销售"),
    TRAVEL(6, "旅游订单"),
    JOINT_MALL(7, "组合电商"),
    DELIVER(8, "同城配送"),
    BLIND_BOX(9,"盲盒"),
    GROUP_BUY(10, "拼团");

    private final int status;
    private final String name;

    private BigOrderClassificationEnum(int status, String name) {
        this.status = status;
        this.name = name;
    }

    @JsonCreator
    @JSONCreator
    public static BigOrderClassificationEnum create(String value) {
        return null;
    }

    public int getStatus() {
        return this.status;
    }

    public String getName() {
        return this.name;
    }

    @Override
    @JsonValue
    public Integer getValue() {
        return this.status;
    }
}
